
#ifndef SETTING_H
#define SETTING_H
#include "settingDlg.h"
#include <qobject.h>
#include <qfile.h>
#include <qstring.h>
class Setting : public SettingDialog 
{
	Q_OBJECT
	public:

		Setting( QWidget* parent, const char* name, bool modal, WFlags fl, int id );
		~Setting();
		int loadFile();
		int pipeLen() const;
		int radius() const;
		int maxBoardLen() const;
		int mixBoardLen() const;

	public slots:
		void pipeLenButtonClicked();
		void radiusButtonClicked();
		void maxBoardLenButtonClicked();
		void mixBoardLenButtonClicked();




	signals:
		void settingLoadSignal(int id, int index,  const QString& str);

	private:

		int loadSettingFile();

		QFile* m_settingFile;
		int m_pipeLen;
		int m_radius;
		int m_maxBoardLen;
		int m_mixBoardLen;
		int m_id;

		int getNum();
		QTextCodec* m_code;
};
#endif
